<?php

/**
 * Name: 设置仓库层
 * User: Silent
 * Date: 2025-09-20
 * Time: 22:45:37
 */

namespace App\Repositories\Config;

use App\Models\Config\Config;
use App\Repositories\BaseRepository;

class ConfigRepository extends BaseRepository
{
    public function __construct(Config $model)
    {
        parent::__construct($model);
    }

    /**
     *  getByKeys
     *
     * @param string $key
     * @return mixed
     */
    public function getByKeys(string $key)
    {
        return $this->model->where('key', $key)->get();
    }
}
